home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
pascal
/
clp.exe
/
CLPARSER.HDR
< prev
next >
Wrap
Text File
|
1992-09-07
|
12KB
|
224 lines
{ ========================================================================== }
{ Unit: CLPARSER (formerly PARSER) Command_Line_Parser }
{ ========================================================================== }
{ }
{ }
{ !!!! !!!! !!!!!! }
{ !! !! !! !! !! }
{ !! ! !! !! !! !!!! !! !!! !!!!! !!!!! !! !!! }
{ !! !! !! !! !! !!! !! !! !! !! !! !!! !! }
{ !! !! !!!!! !!!!! !! !! !!! !!!!!!! !! !! }
{ !! ! !! ! !! !! !! !! !!! !! !! }
{ !! !! !! !! !! !! !! !! !! !! !! !! !! }
{ !!!! !!!!!!! !!!! !!! !! !!!! !!!!! !!!!! !!!! }
{ }
{ }
{ ========================================================================== }
{ }
{ Description: Parser provides access to commandline arguments and }
{ switches by separating them into seperate arrays. }
{ }
{ Modification History: }
{ }
{ PARSER 04/07/89 Version 1.0 }
{ }
{ OPARSER 04/14/89 Version 1.1 (TEST OOPS style OBJECT unit) }
{ }
{ CLPARSER 06/26/89 Version 2.0 (OOPS OBJECT unit) }
{ }
{ CLPARSER 07/26/89 Version 2.1 }
{ }
{ Fixed a bug in the Argument.Find method }
{ that allowed a target string longer than }
{ the item string to match if the first }
{ part of the target matched the item. }
{ }
{ Added the PFile type. This is a parameter }
{ file parser that fills the list with }
{ valid parameters from the file. Comments }
{ are definable and skipped. White space }
{ (tabs, spaces and blank lines) is ignored, }
{ also. }
{ }
{ This is the first version released to }
{ bulletin boards. (TP5.5) }
{ }
{ CLPARSER 08/19/89 Version 2.11 }
{ }
{ Removed external library references and comp- }
{ iled the shareware version as overlay-able. }
{ }
{ CLPARSER 10/01/90 Version 3.0 }
{ }
{ Re-implemented the list as entirely heap }
{ resident. When the object is collapsed it will }
{ now reclaim all heap memory used. I found that }
{ in many cases the amount of heap stolen was TOO }
{ MUCH! }
{ }
{ CLPARSER 04/06/91 Version 3.1 }
{ }
{ This version is compatible with TP 6.0. }
{ Several fundamental changes were made to this }
{ unit which changed the programmer interface. }
{ }
{ 1. Automatic variables have been dropped. You }
{ must declare and initialize all objects used }
{ in your own source. }
{ }
{ 2. Typed pointers to the object have been added }
{ to allow dynamic allocation of objects. }
{ }
{ 3. The ERASE method has been renamed DONE. This }
{ aligns CLPARSER with "standard" nomenclature }
{ used by OPro and TVision. }
{ }
{ ie. }
{ }
{ Var }
{ pArg, pSw : pArgument; }
{ }
{ begin }
{ pArg := New( pArgument, Init( }
{ NormalChars-Switches)); }
{ pSw := New( pArgument, Init(Switches)); }
{ }
{ if pArg^.Count = ...... }
{ .... }
{ .... }
{ }
{ Dispose( pArg, Done ); }
{ Dispose( pSw, Done ); }
{ end; }
{ }
{ 4. The HELP object has been added. }
{ }
{ }
{ CLPARSER 02/29/92 Version 3.2 }
{ }
{ This version was modified to include a pointer }
{ to a CARGO area. The cargo can be any thing. }
{ The ItemRecord definition now includes 2 new }
{ declarations: Cargo and CargoLen. Cargo is a }
{ poi